package com.info.zhiduoduo.core.formbean.diandianyun.common;

import lombok.Data;
import org.springframework.beans.BeanUtils;

import javax.validation.Valid;

/**
 * Created by TerryJ on 2016/03/14.
 */

@Data
public class CommonBaseSimpleFormBean<T> extends CommonBasePageInfo {

    //请求数据
    @Valid
    private T reqdata;

    public static CommonBaseSimpleFormBean copy(CommonBaseSimpleFormBean<?> bean) {
        CommonBaseSimpleFormBean newBean = new CommonBaseSimpleFormBean();
        BeanUtils.copyProperties(bean, newBean);
        return newBean;
    }
}
